import React from 'react';

import '../../assets/css/common.css';

function Modal(props) {
    const { isShowModal, modalTitle, children } = props;

    return (
        <>
            {isShowModal ? (
                <div className="modal">
                    <div className="inner">
                        <div className="m-header">{modalTitle}</div>
                        <div className="content-wrapper">{children}</div>
                    </div>
                </div>
            ) : (
                ""
            )}
        </>
    );
}

export default Modal;